using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.SYS
{
    [DataContract]
	[Table("SysMenuItemList")] // Unused
    public class MenuItemList
    { 
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember, Display(Name = "MenuItemId", ResourceType = typeof(Resources.MenuItemsListResource))]
        public int MenuItemId { get; set; }

        [DataMember, Display(Name = "MenuItemCode", ResourceType = typeof(Resources.MenuItemsListResource))]
        public string MenuItemCode { get; set; }

        [DataMember, Display(Name = "MenuItemName", ResourceType = typeof(Resources.MenuItemsListResource))]
        public string MenuItemName { get; set; }
         
        [DataMember]
        public virtual string UpperMenuItemId { get; set; }

        [DataMember]
        public virtual string MenuItemPath { get; set; }

        [DataMember]
        public virtual string MenuItemTarget { get; set; }

        [DataMember, Display(Name = "SystemId", ResourceType = typeof(Resources.MenuItemsListResource))]
        public string SystemId { get; set; }
         
        #region Record Status

        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MenuItemsListResource))]
        public string RecordStatus { get; set; }

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MenuItemsListResource))]
        public Nullable<int> CreatedBy { get; set; }

        [DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MenuItemsListResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

        [DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MenuItemsListResource))]
        public Nullable<int> UpdatedBy { get; set; }

        [DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MenuItemsListResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        #endregion

    }
}